﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Northwinddemo.DAL.DatabaseGeneric.MetaDataClasses
{
    public class ProductsEntityMetadata
    {
        [Required]
        [StringLength(40)]
        public string ProductName { get; set; }

        [DisplayName("Supplier:")]
        [UIHint("Supplier")]
        public int? SupplierId { get; set; }

        [DisplayName("Category:")]
        [UIHint("Category")]
        public int? CategoryId { get; set; }

        [StringLength(20)]
        public string QuantityPerUnit { get; set; }

        [Range(0, Int16.MaxValue)]
        public short UnitsInStock { get; set; }

        [Range(0, Int16.MaxValue)]
        public short UnitsOnOrder { get; set; }
        
        [Range(0, Int16.MaxValue)]
        public short ReorderLevel { get; set; }

    }
}
